Skip to main content

brushColor

Type

property

Summary

Specifies the color used to paint and to fill shapes in an image.

Syntax

set the brushColor to {<colorName> | <RGBColor>}

Description

Use the brushColor property to change the color used with the bucket, spray can, and brush paint tools, and for the interior of filled shapes.

If the brushPattern has been set since the last time the brushColor was set, the pattern is used instead of the color specified by brushColor. In other words, the last-set property takes priority.

Examples

set the brushColor to "blue"
set the brushColor to "#FFCC99"
set the brushColor to 127,127,255

Value

NameTypeDescription

value

The brushColor is a color reference. The colorName is any standard color name.

The RGBColor consists of three comma-separated integers between zero and 255, specifying the level of each of red, green, and blue; or an HTML-style color consisting of a hash mark (#) followed by three hexadecimal numbers, one for each of red, green, and blue.

By default, the brushColor is black.

keyword: image, rectangle, roundRect, polygon, spray can, bucket, brush, oval, regular

property: backgroundColor, filled, lineSize, penColor, brushPattern

glossary: property, hexadecimal, paint tool, integer, color reference

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?